<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:shiro="http://shiro.apache.org/tags">
    <h:head>
        <title>List</title>
    </h:head>
    <h:body>
        <h:form>
            <h1>friend list</h1>
            <table style="margin:left">
             <tr>
                    <td>
                       <h:commandLink action="#{loginController.doLogout()}">Logout</h:commandLink>
                    </td>                    
                </tr>
             
                    <tr>
                    <td>
                        <a href="actualites.xhtml">Home</a>
                    </td>                    
               
                </tr>
                <tr>
                    <td>
                        <a href="profile.xhtml">Profile</a>
                    </td>                    
                </tr>
                <tr>
                    <td>
                        <a href="friend_list.xhtml">Friend List</a>
                    </td>                    
                </tr>
            </table>
            </h:form>
        
        <hr/>

            <h:form>
                <h:dataTable style="margin:auto" value="#{userController.getCurrentUser().friends}" var="friends" border="1">
                    <h:column>
                    <table>
                        <tr>
                            <td>  
                                <h:outputLabel value="#{friends.username}"/>
                            </td>
                        </tr>
                        </table>
                    </h:column>
                </h:dataTable>
            </h:form>
                
        
    </h:body>
</html>
